package ru.hh.school.logging;

public final class StaticLogger {
    private StaticLogger() {
    }

    private static Logger logger = new SimpleLogger();

    public static Logger getLogger() {
        return logger;
    }

    public static void setLogger(Logger logger) {
        StaticLogger.logger = logger;
    }

    public static void log(String message) {
        logger.log(message);
    }

    public static void logError(Exception exception) {
        logger.logError(exception);
    }
}
